import {Component, OnInit, AfterViewInit} from '@angular/core';
import {DomSanitizer} from '@angular/platform-browser';

@Component({
    templateUrl: './service.component.html',
    styleUrls: ['./service.component.css']
})
export class ServiceComponent implements OnInit, AfterViewInit {

    iframeSrc = this.domSanitizer.bypassSecurityTrustResourceUrl('http://192.168.1.75:8848/nacos/#/login');

    constructor(private domSanitizer: DomSanitizer) {
    }

    ngOnInit() {
    }

    ngAfterViewInit(): void {
        setTimeout(() => {
            this.iframeSrc = this.domSanitizer.bypassSecurityTrustResourceUrl('http://192.168.1.75:8848/nacos/#/index');
        }, 0)
    }

}
